package com.googlecode.bbs.server.worker;

import com.googlecode.bbs.server.domain.BBSMessage;
import com.googlecode.bbs.server.mananger.BBSManage;

public class MessageWorker implements Runnable{

	private BBSManage bbsManager;
	
	private BBSMessage message;
	
	public MessageWorker(BBSManage bbsManager, BBSMessage message) {
		super();
		this.bbsManager = bbsManager;
		this.message = message;
	}

	@Override
	public void run() {
		bbsManager.sendMessageToAll(message);
	}
	
}
